Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more comments for clearing Fuzzy Dedup Cache #321

Conversation

praateekmahajan
Copy link
Collaborator

@praateekmahajan praateekmahajan commented Oct 23, 2024

Description

If a user doesn't clear cache between FuzzyDedup runs they might end up using stale data.
dask provides an overwrite argument but we avoid using that, so that GPU time is not wasted in clearing up the filesystem.

Checklist

  • I am familiar with the Contributing Guide.
  • New or Existing tests cover these changes.
  • The documentation is up to date with these changes.

Signed-off-by: Praateek <[email protected]>
@@ -184,7 +184,7 @@ Python API
from nemo_curator import FuzzyDuplicatesConfig

config = FuzzyDuplicatesConfig(
cache_dir="/path/to/dedup_outputs",
cache_dir="/path/to/dedup_outputs", # must be cleared between runs
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 254 has the tip already, can we add somewhere else too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe other PR's are tackling some of the documentation changes. The only other place I can think of is: https://github.com/NVIDIA/NeMo-Curator/blob/main/examples/fuzzy_deduplication.py

@praateekmahajan
Copy link
Collaborator Author

Closing in favor of #330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants